home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
online
/
motor.EXE
/
TABX.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-10-05
|
2KB
|
60 lines
begin
write('ѥ');
end.
,D4,D5 :FILE;
f1,f2,f3,f4,F5,F6,F7 :text;
str2,str1 :string[11];
STR3,STR4 :STRING[10];
STR5 :STRING[4];
STR6 :STRING[6];
ST1 :STRING[80];
x1,x2,x3,x4,x5,S,i :longint;
y1,y2,y3,y4 :real;
label 10,20,30;
BEGIN
ASSIGN(F6,'MOM.MNU');APPEND(F6);
WRITELN(F6,'[TABX]^C^C(COMMAND "DXFIN" "TABX")');
CLOSE(F6);
begin;
assign(f1,'mom2.dat');reset(f1);
assign(f2,'tabx.dxf');rewrite(f2);
writeln(f2,' 0');
writeln(f2,'SECTION');
WRITELN(F2,' 2');
WRITELN(F2,'ENTITIES');
WRITELN(F2,' 0');
while not eof(f1) do
begin;
readln(f1,X3,x1,x2,y1,Y2);
writeln(f2,'TEXT');
WRITELN(F2,' 8');
WRITELN(F2,'0');
WRITELN(F2,' 10');
WRITELN(F2,x1);
WRITELN(F2,' 20');
WRITELN(F2,X2);
WRITELN(F2,' 40');
WRITELN(F2,'10');
WRITELN(F2,' 1');
WRITELN(F2,ROUND(Y1*100));
writeln(f2,' 0');
end;
WRITELN(F2,'ENDSEC');
WRITELN(F2,' 0');
WRITELN(F2,'EOF');
CLOSE(F1);CLOSE(F2);
END;
end.
uses crt;
var
D1,D2,D3,D4,D5 :FILE;
f1,f2,f3,f4,F5,F6,F7 :text;
str2,str1 :string[11];
STR3,STR4 :STRING[10];
STR5 :STRING[4];
STR6 :STRING[6];
ST1 :STRING[80];
x1,x2,x3,x4,x5,S,i :longint;
y1,